<template>
  <div class="voucher f-fs-c">
    <div id="left" class="f-fs-c">
      <div class="left f-c-b"><span>￥</span><b>1099</b></div>
      <div class="right">
        <div class="theme">新人优惠券</div>
        <div>全场满499使用</div>
        <div>有效期至 2021.03.31 23:59</div>
      </div>
    </div>
    <div id="middle"></div>
    <div id="right" class="f-c-c" v-if="true">
      <el-button type="primary" size="mini">立即领取</el-button>
    </div>
  </div>
</template>
<script>
export default {
  name: "Voucher",
  components: {},
  data() {
    return {};
  },
};
</script>
<style lang="scss" scoped>
$voucher-border-radius: $border-radius-big;
.voucher {
  height: 80px;
}
#left,
#right {
  overflow: hidden;
  border-radius: $voucher-border-radius;
  background: #ffede5;
}
#left {
  height: 100%;
  .left {
    padding: 0 10px;
    text-align: center;
    color: $theme-color-hover;
    b {
      font-size: 24px;
    }
    span {
      font-size: 16px;
    }
  }
  .right {
    padding-right: 10px;
    color: $theme-color;
    line-height: 1.4em;
    font-size: 14px;
  }
  .theme{
    font-weight: bold;
    font-size: 16px;
    line-height: 1.8em;
  }
}
#middle {
  width: 0;
  height: calc(100% - #{$voucher-border-radius * 2});
  border: 1px dashed $theme-color;
}
#right {
  padding: 0 10px;
  height: 100%;
}
</style>